package com.commute.android;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class SettingsActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_settings);	
		
		Bundle extras = getIntent().getExtras();
		
		//DISPLAY CURRENT GPS LOCATION
		TextView display_lon = (TextView) findViewById(R.id.data_field_current_GPS_location_lon);
		TextView display_lat = (TextView) findViewById(R.id.data_field_current_GPS_location_lat);
		TextView display_status = (TextView) findViewById(R.id.data_field_current_GPS_location_status);
		
		double current_gps_coordinates_lon = extras.getDouble("EXTRA_GPS_LON");
		double current_gps_coordinates_lat = extras.getDouble("EXTRA_GPS_LAT");
		String current_gps_coordinates_status = extras.getString("EXTRA_GPS_STATUS");
		
		display_lon.setText(current_gps_coordinates_lon + "");
		display_lat.setText(current_gps_coordinates_lat + "");
		display_status.setText(current_gps_coordinates_status);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_settings, menu);
		return true;
	}

}
